<!-- File: app/views/posts/add.ctp -->
<?php echo $this->Html->script('staffs'); ?>
<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header" data-original-title>
			<h2><i class="icon-plus"></i><span class="break"></span>Create New Users</h2>
			<div class="box-icon">
			<?php echo $this->Html->link('<i class="halflings-icon remove"></i>', array('controller' => 'staffs', 'action' => 'index'), array('escape' => FALSE)); ?>
			</div>
		</div>
		<div class="box-content">
			<?php
				echo $this->Form->create('Staff',array('class'=>'form-horizontal','inputDefaults' => array('error' => array('class' => 'help-inline'))));
				echo $this->Form->input('username',array('div'=>array('class'=>'control-group'),'autofocus'=>'autofocus','autocomplete'=>'off','id'=>'username'));				
				echo $this->Form->input('password',array('div'=>array('class'=>'control-group'),'id'=>'password'));
				echo ("<br>");
				echo $this->Form->input('status', array('div'=>array('class'=>'control-group'),'options' => array('1' => 'Active', '0' => 'Inactive' )));
				echo ("<br>");
				echo $this->Form->input('create_by', array('type' => 'hidden','value'=>$staffs_staffid));
				echo $this->Form->submit('Create & Continue',array('class'=>'btn btn-primary','name' => 'create_continue','id'=>'sub_btn'));
				echo ("<br>");
				echo $this->Form->submit('Create',array('class'=>'btn btn-primary','name' => 'create','id'=>'sub_btn'));
			?>
		</div>
	</div>
</div>